Channel: Automation Step by Step
Category: Education
Tags: how to run gatling tests from command linegatling how to run specific test from command linehow to run multiple tests from command line gatlinghow to setup gatling maven project from scratchgatling how to setup maven projectgatling mvn commandsgatling how to add maven dependencies
Description: All Free Tutorials - automationstepbystep.com Notes: 00:00 Introduction 00:42 Open command line and cd to a new folder 02:38 Check Prerequisites 04:13 Maven Project Setup 06:57 Open project in IDE 11:10 Mark folders for test and resources 12:02 Add Scala plugin on IntelliJ IDEA 12:28 Add Scala in project libraries 13:31 Create Simulation Script 19:13 Run Commands 21:57 Run specific simulation from command line 24:16 Run multliple Simulations from command line Step 1 - Open command line and cd to a new folder 02:38 Step 2 - Check Prerequisites java -version mvn -version scala -version 04:13 Step 3 - Maven Project Setup mvn archetype:generate choose a number or apply filter gatling choose archetype number select version provide groupid, artifactid (artifact Id : project name) 06:57 Step 4 - Open Project in IDE Check pom.xml and project structure Check following maven dependencies Gatling-charts-highcharts Gatling-maven-plugin 11:10 Step 5 - In case the scala and resources folder not already marked Rt click on scala folder > Mark Directory as > Test Sources root Rt click on resources folder > Mark Directory as > Test Resources root 12:02 Step 6 - Check scala plugin is added in the IDE (File - Settings - Plugins) 12:28 Step 7 - Add scala in Project Libraries (File - Project Structure - Global Libraries - Scala) 13:31 Step 8 - Rt click on scala folder - New - Package (can give same package name as groupid) 16:29 Step 9 - Create a scala class BasicSimulation (can copy code from any basic simulation script) 19:13 Step 10 - Open command line and goto the location of project folder 19:36 Step 11 - Try these commands mvn clean gatling:help mvn clean gatling:verify mvn clean gatling:recorder mvn clean gatling:test mvn clean gatling:test -Dgatling.simulationClass=com….Sim1 #GatlingBeginnerTutorials Stories by Raghav - automationstepbystep.com/stories _____________________________________________________________ Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you You can support my mission for education by sharing this knowledge and helping as many people as you can If my work has helped you, consider helping any animal near you, in any way you can. Never Stop Learning Raghav